package com.senditcertified.mail;

import com.activities.SecureActivity;
import com.senditcertified.mail.R;

import android.app.Activity;
import android.content.res.Configuration;
import android.os.Bundle;
import android.text.Html;
import android.util.Log;
import android.webkit.WebView;
import android.widget.TextView;

public class Message extends Activity {
	/**
	 * @see android.app.Activity#onCreate(Bundle)
	 */
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		// TODO Put your code here
		setContentView(R.layout.message_tab);
		WebView message_text = (WebView) findViewById(R.id.testmessage);
		Log.v("Message ", SecureActivity.getEpackge.getFile_msg());
		message_text.loadData(SecureActivity.getEpackge.getFile_msg(), "text/html", "UTF-8");
//		message_text.setText(Html.fromHtml(TabSecure_Activity.getEpackge.getFile_msg()));
	}

	@Override
	protected void onStop() {
		// TODO Auto-generated method stub
		System.out.println("Stop");
		super.onStop();
	}

	@Override
	protected void onDestroy() {
		// TODO Auto-generated method stub
		System.out.println("Ondestroy");
		super.onDestroy();

	}
	
	@Override
	public void onConfigurationChanged(Configuration newConfig) {
		// TODO Auto-generated method stub
		super.onConfigurationChanged(newConfig);
	}
}
